import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home'
import Login from '../views/Login'
import Register from '../views/Register'
import Search from '../views/Search'

Vue.use(VueRouter)

const routes = [
	{
		path: '/',
		name: 'Home',
		component: Home,
	},
    {
		path: '/Login',
		name: 'Login',
		component: Login,
	},
    {
		path: '/Register',
		name: 'Register',
		component: Register,
	},
    {
		path: '/Search',
		name: 'Search',
		component: Search,
	},
]

const router = new VueRouter({
	mode: 'history',
	base: process.env.BASE_URL,
	routes,
})

export default router
